<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition>

	<table width="100%" cellspacing="5" cellpadding="0" border="0"
		class="table_box">
		<tbody>
			<tr>
				<td align="right" width="200px">Bedroom:</td>
				<td><h:inputText value="#{updatePropertyBean.prop.propForRent.bedRoom}" maxlength="2"
						id="prop_Pbedroom" validator="#{mValidatorLib.BedRoomValidator()}" />
					<div class="table_td_message">
						<rich:message for="prop_Pbedroom" />
					</div></td>
			</tr>
			<tr>
				<td align="right" width="200px">Bathroom:</td>
				<td><h:inputText value="#{updatePropertyBean.prop.propForRent.bathRoom}" maxlength="2"
						id="prop_Pbathroom" validator="#{mValidatorLib.BathRoomValidator}" />
					<div class="table_td_message">
						<rich:message for="prop_Pbathroom" />
					</div></td>
			</tr>
			<tr>
				<td align="right" width="200px">Deposit*(Australia Dollars):</td>
				<td><h:inputText value="#{updatePropertyBean.prop.propForRent.deposit}"
						id="prop_Pdeposit" maxlength="20" validator="#{mValidatorLib.RentValidator}"/>
					<div class="table_td_message">
						<rich:message for="prop_Pdeposit" showSummary="true"/>
					</div></td>
			</tr>
			<tr>
				<td align="right" width="200px">Rent*(Australia Dollars):</td>
				<td><h:inputText value="#{updatePropertyBean.prop.propForRent.rent}"
						id="prop_Prent" maxlength="20" validator="#{mValidatorLib.RentValidator}"/>
					<div class="table_td_message">
						<rich:message for="prop_Prent" showSummary="true"/>
					</div></td>
			</tr>
			<tr>
				<td align="right">Payment:</td>
				<td><h:selectOneMenu
						value="#{updatePropertyBean.prop.propForRent.payment}" id="prop_Ppayment">
						<f:selectItem itemValue="Cash" itemLabel="Cash" />
						<f:selectItem itemValue="Card" itemLabel="Card" />
					</h:selectOneMenu>
					<div class="table_td_message">
						<rich:message for="prop_Ppayment" />
					</div></td>
			</tr>

			<tr>
				<td align="right"></td>
				<td><h:commandLink
						action="#{updatePropertyBean.updateProperty}" styleClass="button"
						value="Update my Property" /></td>
			</tr>
		</tbody>
	</table>

</ui:composition>
</html>